<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="__THEMES__/style/common.css" />
       	<link rel="stylesheet" type="text/css" href="__THEMES__/style/admin_ui.css" />
       	<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
       	<script type="text/javascript" src="__JS__/jQuery/plugin/formstyle.js"></script>
       	<include file="Public:js_navigation" />
        <include file="Public:js_sidebar" />
        <script type="text/javascript">
            $(function(){
                
                $('input[name="boards"]').click(function(){
                	if ($(this).attr('checked')){
                		$('.board').attr('checked','checked');
                	}else{
                		$('.board').removeAttr('checked');
                	}
                });
                
                $('.board').click(function(){
                	if ($('input[name="boards"]').attr('checked') != true){
                		$('input[name="boards"]').attr('checked','checked');
                	}
                	
                	if ($('.board:checkbox:checked').size() < 1){
                		$('input[name="boards"]').removeAttr('checked');
                	}
                	
                });
                
                $('input[name="applications"]').click(function(){
                	if ($(this).attr('checked')){
                		$('.app').attr('checked','checked');
                	}else{
                		$('.app').removeAttr('checked');
                	}
                });
                
                $('.app').click(function(){
                	if ($('input[name="applications"]').attr('checked') != true){
                		$('input[name="applications"]').attr('checked','checked');
                	}
                	
                	if ($('.app:checkbox:checked').size() < 1){
                		$('input[name="applications"]').removeAttr('checked');
                	}
                	
                });
                
            });
            
        </script>
        <style type="text/css">
        	.a_table *		{ margin : 0; padding : 0; }
        	dl				{  }
        	dl dt			{  }
        	dl dd			{ margin-left : 15px!important; }
        	dl dd ul		{ padding : 10px!important; list-style: none; }
        	dl dd ul li		{ line-height : 21px; }
        	.submit_default_box	{ margin : 20px 0px 20px 20px; }
        	.submit_default		{ padding : 0px 10px 0px 24px; }
        	.submit_hover		{ padding : 0px 10px 0px 24px; }
        </style>
		<title>{:C('ADMIN_TITLE')}</title>
	</head>
	<body>
		<include file="Public:header" />
        
        <div class="layout">
            
            <include file="Public:position" />
            
            <table class="warp" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="sidebar" valign="top">
                        <include file="Public:sidebar" />
                    </td>
                    <td class="contents" valign="top">
                        
	                    
                        <div class="a_table" style="padding: 40px 0px 20px 50px;">
					    	<form action="{:U('cache/clear',array('tag'=>$_GET['tag']))}" method="post">
	                        <dl style="margin-bottom: 15px;">
								<dt><input type="checkbox" name="boards" /> 后台缓存</dt>
								<dd>
									<ul>
										<li><input type="checkbox" name="board[]" value="cache" class="board" /> 模板缓存(cache)</li>
										<li><input type="checkbox" name="board[]" value="temp" class="board" /> 数据缓存(temp)</li>
										<li><input type="checkbox" name="board[]" value="data" class="board" /> 数据目录(data)</li>
										<li><input type="checkbox" name="board[]" value="logs" class="board" /> 后台日志(logs)</li>
										<li><input type="checkbox" name="board_runtime" value="board_a_run" class="board" /> 后台程序缓存文件</li>
									</ul>
								</dd>
							</dl>
							
							<dl>
								<dt><input type="checkbox" name="applications" /> 前台缓存</dt>
								<dd>
									<ul>
										<li><input type="checkbox" name="app[]" value="cache" class="app" /> 模板缓存(cache)</li>
										<li><input type="checkbox" name="app[]" value="temp" class="app" /> 数据缓存(temp)</li>
										<li><input type="checkbox" name="app[]" value="data" class="app" /> 数据目录(data)</li>
										<li><input type="checkbox" name="app[]" value="logs" class="app" /> 后台日志(logs)</li>
										<li><input type="checkbox" name="app_runtime" class="app" /> 前台程序缓存文件</li>
									</ul>
								</dd>
							</dl>
							<div class="submit_default_box">
								<input type="submit" class="submit_default" value="清除缓存" />
								<span class="submit_default_icon" id="submit_icon"></span>
							</div>
							</form>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        
        <include file="Public:footer" />
	</body>
</html>